import { PropType } from "vue";
import { SizeType } from "./PropsType";

export default {
  value: {
    type: Boolean as PropType<Boolean>,
    valueType: "Boolean",
    default: false,
    explanation: "指定当前是否选中，可以使用 v-model 双向绑定数据",
  },
  size: {
    type: String as PropType<SizeType>,
    valueType: "String",
    default: "default",
    explanation: "开关的尺寸",
    options: ["default", "large", "small"],
  },
  disabled: {
    type: Boolean,
    valueType: "Boolean",
    default: false,
    explanation: "是否禁用",
  },
  openColor: {
    type: String,
    valueType: "String",
    default:'#13ce66',
    explanation: "自定义打开时的背景色",
  },
  closeColor: {
    type: String || undefined,
    valueType: "String",
    default:'#e2e2e2',
    explanation: "自定义关闭时的背景色",
  },
};
